//
//  DataManager.h
//  iStage
//
//  Created by michael on 26/07/2008.
//  Copyright 2008 Legal Education Technology Lab. All rights reserved.
//

#import <UIKit/UIKit.h>


@interface DataManager : NSObject {
	NSMutableDictionary *currentProduction;
	NSMutableDictionary *currentPerson;
	NSMutableDictionary *currentProp;
	NSMutableArray *productionList;
	NSInteger currentProductionIndex;
}

@property (nonatomic,retain,readonly) NSMutableDictionary *currentProduction;
@property (nonatomic,retain,readonly) NSMutableDictionary *currentProp;
@property (nonatomic,retain,readonly) NSMutableDictionary *currentPerson;
@property (nonatomic,retain) NSMutableArray *productionList;
@property (nonatomic,readonly) NSInteger currentProductionIndex;


-(void)setCurrentProduction:(NSInteger)index;
-(void)setCurrentProp:(NSInteger)index;
-(void)setCurrentPersonToCastAtIndex:(NSInteger)index;
-(void)setCurrentPersonToCrewAtIndex:(NSInteger)index;
-(void)setCurrentPersonToNewForList:(NSInteger)list;

-(void)addNewProductionWithTitle:(NSString *)title;
-(void)initialise;
+(DataManager*)sharedDataManager;
+(void)persistToDisk;
+(DataManager *)readFromDisk;
@end
